﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QuanLySieuThi.GUI
{
    public partial class frmDangNhap : Form
    {
        
        public frmDangNhap()
        {
            InitializeComponent();
        }

        private void btnDangNhap_Click(object sender, EventArgs e)
        {
            Help.CDataProvider dp; 
            dp = new Help.CDataProvider();
            dp.OpenConnect();
            if(dp.KiemTra(txtTenDN.Text, txtMatKhau.Text))
            {
                //string sql = "Select LoaiTK from TaiKhoan where TenDN = " + "'txtTenDN.Text'" + "and MatKhau = " + "'txtMatKhau.Text'";
                frmQuanLy ql = new frmQuanLy();
                ql.ShowDialog();
            }
        }

        private void frmDangNhap_Load(object sender, EventArgs e)
        {

        }
    }
}
